package com.jy.adscm.zltx.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2018-11-02
 */
public class QsUpdateHistoryRecord implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("fileId")
    private Integer fileId;
    @TableField("updateId")
    private Integer updateId;
    @TableField("contentType")
    private String contentType;
    @TableField("beforeContent")
    private String beforeContent;
    @TableField("afterContent")
    private String afterContent;
    @TableField("updateTime")
    private Date updateTime;
    @TableField("fileUpdateWriter")
    private String fileUpdateWriter;
    @TableField(exist = false)
    private String fileUpdateWriterName;

    public String getFileUpdateWriterName() {
        return fileUpdateWriterName;
    }

    public void setFileUpdateWriterName(String fileUpdateWriterName) {
        this.fileUpdateWriterName = fileUpdateWriterName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public Integer getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getBeforeContent() {
        return beforeContent;
    }

    public void setBeforeContent(String beforeContent) {
        this.beforeContent = beforeContent;
    }

    public String getAfterContent() {
        return afterContent;
    }

    public void setAfterContent(String afterContent) {
        this.afterContent = afterContent;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getUpdateTime() {
        return updateTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getFileUpdateWriter() {
        return fileUpdateWriter;
    }

    public void setFileUpdateWriter(String fileUpdateWriter) {
        this.fileUpdateWriter = fileUpdateWriter;
    }

    @Override
    public String toString() {
        return "QsUpdateHistoryRecord{" +
        "id=" + id +
        ", fileId=" + fileId +
        ", updateId=" + updateId +
        ", contentType=" + contentType +
        ", beforeContent=" + beforeContent +
        ", afterContent=" + afterContent +
        ", updateTime=" + updateTime +
        ", fileUpdateWriter=" + fileUpdateWriter +
        "}";
    }
}
